package dancereal.OOP;

public class J31_RetangleService implements J31_RetangleInterface{

	@Override
	public float getArea(float width, float height) {
		return width * height;
	}

	@Override
	public float getArea(J31_RetangleVO r) {
		return r.getHeight() * r.getWidth();
	}

	@Override
	public float getPerimeter(float width, float height) {
		return 2 * width + 2 * height;
	}

	@Override
	public float getPerimeter(J31_RetangleVO r) {
		return 2 * r.getHeight() + 2 * r.getWidth();
	}

}
